home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / rexx / 2024 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.6 KB

  1. Path: knoware.nl!usenet
  2. From: koos_pol@compuware.com (Koos Pol)
  3. Newsgroups: comp.lang.rexx
  4. Subject: Re: Locking a file?
  5. Date: 17 Apr 1996 07:01:51 GMT
  6. Organization: Compuware Europe, Amsterdam
  7. Distribution: inet
  8. Message-ID: <4l250v$l61@news.knoware.nl>
  9. References: <4l12kf$4m0@panix2.panix.com>
  10. Reply-To: koos_pol@compuware.com (Koos Pol)
  11. NNTP-Posting-Host: willow.uniface.nl
  12. X-Newsreader: IBM NewsReader/2 v1.02
  13.  
  14. In <4l12kf$4m0@panix2.panix.com>, rcpj@panix.com (Pierre Jelenc) writes:
  15. >
  16. >How can I lock a file in OS/2 so that one and only one process at a time
  17. >can modify it or its EA's? Would it be effective to mark the file as
  18. >"hidden" or "system", or is there a possibility of one process getting a
  19. >false reading between the time the other process decides to lock the file
  20. >and the time when the OS actually changes the attribute?
  21. >
  22. >TIA
  23. >
  24. >Pierre
  25. >-- 
  26. >Pierre Jelenc              Know what's weird? Day by day nothing seems to
  27. >rcpj@panix.com             change, but pretty soon everything is different.
  28. >pierre@nycbeer.org                                         Calvin & Hobbes 
  29. >                   http://www.columbia.edu/~pcj1/
  30.  
  31.  
  32. Open the file in WRITE mode. (Atomic action)
  33.  
  34. Koos
  35. -----------------------------------------------------------------
  36. S.C. Pol                                    Phone: +31 20 3116122
  37. PC Systems Administrator                    Fax  : +31 20 3116133
  38. Compuware Europe                    email: koos_pol@compuware.com
  39. Amsterdam 
  40. The Netherlands               "Please DO disturb. I was working!"
  41. -----------------------------------------------------------------
  42.  
  43.